<?php
//dezend by http://www.yunlu99.com/ QQ:270656184
defined('BASEPATH') || exit('No direct script access allowed');
$this->load->helper('url');
?><link rel="stylesheet" href="/static/css/sign.css" id="css_sign">
<script type="text/javascript">
$(function(){
	var _w = $(window).width();
	if(_w < 600) {
		$('#css_sign').attr('href','/static/css/m_sign.css');
	}
});
</script>
<div class="container">
  <div class="sign-main">
   
    <form action="<?php echo site_url('user/verify');?>" method="post" id="form_id">
    	<table cellspacing=0 cellpadding=0 border=0>
    		<tr><td colspan=2><h1>会员登录</h1></td></tr>
    		<tr><td><div class="input_box"><i class="fa fa-user-o input_bg"></i><input type="text" name="username" must="1" placeholder="<?php echo lang('sign_username_warn');?>"><p><?php echo lang('sign_username_warn');?></p></div></td></tr>
    		<tr><td><div class="input_box"><i class="fa fa-key input_bg"></i><input type="password" name="password" must="1" placeholder="<?php echo lang('sign_password_warn');?>"><p><?php echo lang('sign_password_warn');?></p></div></td></tr>
    		<tr><td><div class="input_box"><i class="fa fa-image input_bg"></i><input type="text" class="captcha_input" must="1" name="captcha" placeholder="<?php echo lang('sign_captcha_image_warn');?>"><p><?php echo lang('sign_captcha_image_warn');?></p><span class="captcha_img"><span id="captcha"></span></span></div></td></tr>
    		<tr><td class="warning" style="text-align:center;padding:0px;"></td></tr>
    		<tr><td><button type="submit"><?php echo lang('sign_login');?></button></td></tr>
    		<tr><td><a class="warning" href="<?php echo site_url('user/forget');?>"><?php echo lang('sign_forget');?>？</a><a style="float:right;display:none;" href="<?php echo site_url('user/reg');?>"><?php echo lang('sign_reg');?></a></td></tr>
    		<tr><td colspan=2></td></tr>
    		<tr><td colspan=2 class="sign-btm">还没有<?php echo $sys['name'];?>账号？ <a href="<?php echo site_url('user/reg');?>">点击注册>></a></td></tr>
    	</table>
	</form>
  </div>
</div>
<script>
$('#form_id').checkForm();
$('#captcha').load('<?php echo site_url('tool/captcha');?>');
$('#captcha').click(function(){
	$('#captcha').load('<?php echo site_url('tool/captcha');?>');
});
</script>